<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
  <meta content="text/html; charset=utf-8" http-equiv="Content-Type" />

  <title>Module: AdminHelper</title>

  <link rel="stylesheet" href="./rdoc.css" type="text/css" media="screen" />

  <script src="./js/jquery.js" type="text/javascript" charset="utf-8"></script>
  <script src="./js/thickbox-compressed.js" type="text/javascript" charset="utf-8"></script>
  <script src="./js/quicksearch.js" type="text/javascript" charset="utf-8"></script>
  <script src="./js/darkfish.js" type="text/javascript" charset="utf-8"></script>

</head>
<body id="top" class="module">

  <div id="metadata">
    <div id="home-metadata">
      <div id="home-section" class="section">
        <h3 class="section-header">
          <a href="./index.html">Home</a>
          <a href="./index.html#classes">Classes</a>
          <a href="./index.html#methods">Methods</a>
        </h3>
      </div>
    </div>

    <div id="file-metadata">
      <div id="file-list-section" class="section">
        <h3 class="section-header">In Files</h3>
        <div class="section-body">
          <ul>
          
            <li><a href="./app/helpers/admin_helper_rb.html?TB_iframe=true&amp;height=550&amp;width=785"
              class="thickbox" title="app/helpers/admin_helper.rb">app/helpers/admin_helper.rb</a></li>
          
          </ul>
        </div>
      </div>

      
    </div>

    <div id="class-metadata">
      

      

      

      
      <!-- Method Quickref -->
      <div id="method-list-section" class="section">
        <h3 class="section-header">Methods</h3>
        <ul class="link-list">
          
          <li><a href="#method-i-application_list">#application_list</a></li>
          
          <li><a href="#method-i-application_list_home">#application_list_home</a></li>
          
          <li><a href="#method-i-get_old_value_for_div">#get_old_value_for_div</a></li>
          
          <li><a href="#method-i-ssl_block">#ssl_block</a></li>
          
        </ul>
      </div>
      

      
    </div>

    <div id="project-metadata">
      
      
      <div id="fileindex-section" class="section project-section">
        <h3 class="section-header">Files</h3>
        <ul>
        
          <li class="file"><a href="./doc/README_FOR_APP.html">README_FOR_APP</a></li>
        
        </ul>
      </div>
      

      <div id="classindex-section" class="section project-section">
        <h3 class="section-header">Class/Module Index
          <span class="search-toggle"><img src="./images/find.png"
            height="16" width="16" alt="[+]"
            title="show/hide quicksearch" /></span></h3>
        <form action="#" method="get" accept-charset="utf-8" class="initially-hidden">
        <fieldset>
          <legend>Quicksearch</legend>
          <input type="text" name="quicksearch" value=""
            class="quicksearch-field" />
        </fieldset>
        </form>

        <ul class="link-list">
        
          <li><a href="./Analytics.html">Analytics</a></li>
        
          <li><a href="./Analytics/Database.html">Analytics::Database</a></li>
        
          <li><a href="./Analytics/ResourceUsage.html">Analytics::ResourceUsage</a></li>
        
          <li><a href="./Analytics/Throughput.html">Analytics::Throughput</a></li>
        
          <li><a href="./Analytics/Url.html">Analytics::Url</a></li>
        
          <li><a href="./Analytics/UrlBreakup.html">Analytics::UrlBreakup</a></li>
        
          <li><a href="./ActionView.html">ActionView</a></li>
        
          <li><a href="./ActionView/Helpers.html">ActionView::Helpers</a></li>
        
          <li><a href="./ActionView/Helpers/AssetTagHelper.html">ActionView::Helpers::AssetTagHelper</a></li>
        
          <li><a href="./AdminController.html">AdminController</a></li>
        
          <li><a href="./AdminHelper.html">AdminHelper</a></li>
        
          <li><a href="./App.html">App</a></li>
        
          <li><a href="./AppException.html">AppException</a></li>
        
          <li><a href="./AppTimeSample.html">AppTimeSample</a></li>
        
          <li><a href="./ApplicationController.html">ApplicationController</a></li>
        
          <li><a href="./ApplicationHelper.html">ApplicationHelper</a></li>
        
          <li><a href="./ApplicationSpecification.html">ApplicationSpecification</a></li>
        
          <li><a href="./ApplicationSpecificationController.html">ApplicationSpecificationController</a></li>
        
          <li><a href="./ApplicationSpecificationHelper.html">ApplicationSpecificationHelper</a></li>
        
          <li><a href="./Control.html">Control</a></li>
        
          <li><a href="./ExceptionDetail.html">ExceptionDetail</a></li>
        
          <li><a href="./ExceptionsController.html">ExceptionsController</a></li>
        
          <li><a href="./ExceptionsHelper.html">ExceptionsHelper</a></li>
        
          <li><a href="./GraphController.html">GraphController</a></li>
        
          <li><a href="./GraphHelper.html">GraphHelper</a></li>
        
          <li><a href="./Headers.html">Headers</a></li>
        
          <li><a href="./HeadersController.html">HeadersController</a></li>
        
          <li><a href="./HeadersHelper.html">HeadersHelper</a></li>
        
          <li><a href="./MailSpecification.html">MailSpecification</a></li>
        
          <li><a href="./MailSpecificationController.html">MailSpecificationController</a></li>
        
          <li><a href="./MailSpecificationHelper.html">MailSpecificationHelper</a></li>
        
          <li><a href="./Mailer.html">Mailer</a></li>
        
          <li><a href="./Object.html">Object</a></li>
        
          <li><a href="./PseudoModel.html">PseudoModel</a></li>
        
          <li><a href="./ResourceUsage.html">ResourceUsage</a></li>
        
          <li><a href="./SCGI.html">SCGI</a></li>
        
          <li><a href="./ServerSpecification.html">ServerSpecification</a></li>
        
          <li><a href="./ServerSpecificationController.html">ServerSpecificationController</a></li>
        
          <li><a href="./ServerSpecificationHelper.html">ServerSpecificationHelper</a></li>
        
          <li><a href="./SignalHelper.html">SignalHelper</a></li>
        
          <li><a href="./UrlBreakupTimeSample.html">UrlBreakupTimeSample</a></li>
        
          <li><a href="./UrlTimeSample.html">UrlTimeSample</a></li>
        
          <li><a href="./User.html">User</a></li>
        
          <li><a href="./YAMLConfig.html">YAMLConfig</a></li>
        
          <li><a href="./YAMLWriter.html">YAMLWriter</a></li>
        
        </ul>
        <div id="no-class-search-results" style="display: none;">No matching classes.</div>
      </div>

      
    </div>
  </div>

  <div id="documentation">
    <h1 class="module">AdminHelper</h1>

    <div id="description" class="description">
      
<p>Methods added to this helper will be available to all view files for the
admin controller.</p>

    </div><!-- description -->

    
    
    
    <div id="5Buntitled-5D" class="documentation-section">
      

      

      

      

      <!-- Methods -->
      
      <div id="public-instance-method-details" class="method-section section">
        <h3 class="section-header">Public Instance Methods</h3>

      
        <div id="application_list-method" class="method-detail ">
          <a name="method-i-application_list"></a>

          
          <div class="method-heading">
            <span class="method-name">application_list</span><span
              class="method-args">(start = 0)</span>
            <span class="method-click-advice">click to toggle source</span>
          </div>
          

          <div class="method-description">
            
            <p>This method is used to populate the rows of application data in the
configuration page. This method is called from configuration.html.erb.</p>
            

            
            <div class="method-source-code" id="application_list-source">
<pre>
<span class="ruby-comment"># File app/helpers/admin_helper.rb, line 25</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier">application_list</span>(<span class="ruby-identifier">start</span> = <span class="ruby-value">0</span>)
  <span class="ruby-identifier">i</span> = <span class="ruby-identifier">start</span> 
  <span class="ruby-identifier">list_array</span> = <span class="ruby-constant">Array</span>.<span class="ruby-identifier">new</span>
  <span class="ruby-identifier">index</span> = <span class="ruby-value">1</span>
  <span class="ruby-keyword">if</span> (<span class="ruby-ivar">@info</span>[<span class="ruby-string">'Application Specification'</span>])
    <span class="ruby-keyword">while</span>(<span class="ruby-ivar">@info</span>[<span class="ruby-string">'Application Specification'</span>][<span class="ruby-identifier">i</span>] <span class="ruby-keyword">and</span> <span class="ruby-identifier">i</span> <span class="ruby-operator">&lt;</span> <span class="ruby-identifier">start</span><span class="ruby-operator">+</span><span class="ruby-value">5</span>)
      <span class="ruby-identifier">application</span> = <span class="ruby-constant">ApplicationSpecification</span>.<span class="ruby-identifier">get_hash</span>(<span class="ruby-identifier">i</span>)
      <span class="ruby-comment">#link=&quot;http://#{request.host}:#{request.port}#{h(application[:resolver])}&quot;        </span>
      <span class="ruby-identifier">str</span> = <span class="ruby-node">&quot;&lt;tr&gt;
      &lt;td&gt;#{h(application[:name])}&lt;/td&gt;
      &lt;td&gt;#{h(application[:resolver])}&lt;/td&gt;
      &lt;td&gt;#{h(application[:type1])}&lt;/td&gt;
      &lt;td&gt;#{h(application[:analytics])}&lt;/td&gt;
      &lt;td&gt;#{h(application[:environment])}&lt;/td&gt;
      &lt;td&gt;#{h(application[:min_worker])}&lt;/td&gt;
      &lt;td&gt;#{h(application[:max_worker])}&lt;/td&gt;
      &lt;td&gt;&lt;center&gt;#{link_to 'Edit', :controller =&gt; 'application_specification', :action =&gt; 'edit_application_form', :id =&gt; application[:name]}&lt;/center&gt;&lt;/td&gt;
    &lt;td&gt;&lt;center&gt;#{link_to_remote 'Delete', {:url =&gt; {:controller =&gt; 'application_specification', :action=&gt;'delete_application', :id =&gt; application[:name]}, :before =&gt; &quot;show_busy_div()&quot;, :complete =&gt; &quot;hide_busy_div(request)&quot;, :update =&gt; &quot;dummy_div&quot;, :confirm=&gt;DELETE_APPLICATION_ALERT_MESSAGE, :oncontextmenu =&gt; 'return false;' }}&lt;/center&gt;&lt;/td&gt;
  &lt;td&gt;&lt;center&gt;#{link_to_remote 'Restart', {:url =&gt; {:controller =&gt; 'application_specification', :action =&gt; 'restart_application', :id =&gt; application[:name]}, :before =&gt; &quot;show_busy_div()&quot;, :complete =&gt; &quot;hide_busy_div(request)&quot;, :update =&gt; &quot;dummy_div&quot;, :confirm=&gt;RESTART_APPLICATION_ALERT_MESSAGE, :oncontextmenu =&gt; 'return false;'}}&lt;/center&gt;&lt;/td&gt;&lt;/tr&gt;&quot;</span>
      <span class="ruby-identifier">list_array</span>[<span class="ruby-identifier">i</span>] = <span class="ruby-identifier">str</span>
      <span class="ruby-identifier">i</span> <span class="ruby-operator">+=</span> <span class="ruby-value">1</span>
    <span class="ruby-keyword">end</span>
  <span class="ruby-keyword">end</span>   
  <span class="ruby-keyword">return</span> <span class="ruby-identifier">list_array</span>.<span class="ruby-identifier">join</span>(<span class="ruby-string">&quot;\n&quot;</span>)
<span class="ruby-keyword">end</span></pre>
            </div><!-- application_list-source -->
            
          </div>

          

          
        </div><!-- application_list-method -->

      
        <div id="application_list_home-method" class="method-detail ">
          <a name="method-i-application_list_home"></a>

          
          <div class="method-heading">
            <span class="method-name">application_list_home</span><span
              class="method-args">()</span>
            <span class="method-click-advice">click to toggle source</span>
          </div>
          

          <div class="method-description">
            
            <p>This method is used to populate the rows of application data on the Home
page. This method is called from home.html.erb.</p>
            

            
            <div class="method-source-code" id="application_list_home-source">
<pre>
<span class="ruby-comment"># File app/helpers/admin_helper.rb, line 53</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier">application_list_home</span>
  <span class="ruby-identifier">i</span> = <span class="ruby-value">0</span>
  <span class="ruby-identifier">list_array</span> = <span class="ruby-constant">Array</span>.<span class="ruby-identifier">new</span>
  <span class="ruby-identifier">index</span> = <span class="ruby-value">1</span>
  <span class="ruby-keyword">if</span> (<span class="ruby-ivar">@info</span>[<span class="ruby-string">'Application Specification'</span>])
    <span class="ruby-keyword">while</span>(<span class="ruby-ivar">@info</span>[<span class="ruby-string">'Application Specification'</span>][<span class="ruby-identifier">i</span>])
      <span class="ruby-identifier">application</span> = <span class="ruby-constant">ApplicationSpecification</span>.<span class="ruby-identifier">get_hash</span>(<span class="ruby-identifier">i</span>)
      <span class="ruby-keyword">if</span> <span class="ruby-ivar">@apps_resource_usage</span>[<span class="ruby-identifier">application</span>[<span class="ruby-value">:name</span>]]
        <span class="ruby-identifier">cpu_usage</span> = <span class="ruby-identifier">format</span>(<span class="ruby-string">&quot;%.2f&quot;</span>, <span class="ruby-ivar">@apps_resource_usage</span>[<span class="ruby-identifier">application</span>[<span class="ruby-value">:name</span>]][<span class="ruby-value">0</span>])
        <span class="ruby-identifier">memory_usage</span> = <span class="ruby-identifier">format</span>(<span class="ruby-string">&quot;%.2f&quot;</span>, <span class="ruby-ivar">@apps_resource_usage</span>[<span class="ruby-identifier">application</span>[<span class="ruby-value">:name</span>]][<span class="ruby-value">1</span>].<span class="ruby-identifier">to_f</span><span class="ruby-operator">/</span><span class="ruby-value">1024</span>)
      <span class="ruby-keyword">else</span>
        <span class="ruby-identifier">cpu_usage</span> = <span class="ruby-string">&quot;0.00&quot;</span>
        <span class="ruby-identifier">memory_usage</span> = <span class="ruby-string">&quot;0.00&quot;</span>
      <span class="ruby-keyword">end</span>     
      <span class="ruby-identifier">exception_count</span> = <span class="ruby-constant">App</span>.<span class="ruby-identifier">exceptions_count</span>(<span class="ruby-identifier">application</span>[<span class="ruby-value">:name</span>])
      <span class="ruby-keyword">if</span> <span class="ruby-identifier">exception_count</span> <span class="ruby-operator">&gt;</span> <span class="ruby-value">0</span> 
        <span class="ruby-identifier">link_text</span> = <span class="ruby-node">&quot;Yes (#{exception_count})&quot;</span>
        <span class="ruby-identifier">exception_td_data</span> = <span class="ruby-node">&quot;&lt;span id='#{application[:name]}_exception'&gt;#{link_to link_text, :controller =&gt; 'exceptions', :action =&gt; 'get_exceptions_list', :application_name =&gt; application[:name]}&lt;/span&gt;&quot;</span>
      <span class="ruby-keyword">else</span>
        <span class="ruby-identifier">exception_td_data</span> = <span class="ruby-node">&quot;&lt;span id='#{application[:name]}_exception'&gt;No&lt;/span&gt;&quot;</span>
      <span class="ruby-keyword">end</span>
      <span class="ruby-comment">#link=&quot;http://#{request.host}:#{request.port}#{h(application[:resolver])}&quot;</span>
      <span class="ruby-identifier">list_array</span>[<span class="ruby-identifier">i</span>] = <span class="ruby-node">&quot;&lt;tr&gt;
                              &lt;td width = 25%&gt;#{h(application[:name])}&lt;/td&gt;
                              &lt;td width = 15%&gt;&lt;span id = '#{application[:name]}_cpu'&gt;#{h cpu_usage}&lt;/span&gt; %&lt;/td&gt;
                              &lt;td width = 15%&gt;&lt;span id = '#{application[:name]}_memory'&gt;#{h memory_usage}&lt;/span&gt; MB&lt;/td&gt;
                              &lt;td width = 15%&gt;#{h application[:min_worker]}&lt;/td&gt;
                              &lt;td width = 15%&gt;#{h application[:max_worker]}&lt;/td&gt;&quot;</span>
      <span class="ruby-keyword">if</span>  <span class="ruby-identifier">application</span>[<span class="ruby-value">:type1</span>].<span class="ruby-identifier">downcase</span> <span class="ruby-operator">==</span> <span class="ruby-string">'rails'</span>
        <span class="ruby-identifier">list_array</span>[<span class="ruby-identifier">i</span>] = <span class="ruby-identifier">list_array</span>[<span class="ruby-identifier">i</span>]<span class="ruby-operator">+</span> <span class="ruby-node">&quot; &lt;td width = 15%&gt;#{exception_td_data}&lt;/td&gt;&lt;/tr&gt;&quot;</span>
      <span class="ruby-keyword">else</span>
        <span class="ruby-identifier">list_array</span>[<span class="ruby-identifier">i</span>] = <span class="ruby-identifier">list_array</span>[<span class="ruby-identifier">i</span>]<span class="ruby-operator">+</span>  <span class="ruby-string">&quot;&lt;td width = 15%&gt;--&lt;/td&gt;&lt;/tr&gt;&quot;</span>
      <span class="ruby-keyword">end</span>
      <span class="ruby-identifier">i</span> <span class="ruby-operator">+=</span> <span class="ruby-value">1</span>          
    <span class="ruby-keyword">end</span>
  <span class="ruby-keyword">end</span>
  <span class="ruby-keyword">return</span> <span class="ruby-identifier">list_array</span>.<span class="ruby-identifier">join</span>(<span class="ruby-string">&quot;\n&quot;</span>)
<span class="ruby-keyword">end</span></pre>
            </div><!-- application_list_home-source -->
            
          </div>

          

          
        </div><!-- application_list_home-method -->

      
        <div id="get_old_value_for_div-method" class="method-detail ">
          <a name="method-i-get_old_value_for_div"></a>

          
          <div class="method-heading">
            <span class="method-name">get_old_value_for_div</span><span
              class="method-args">(div_id)</span>
            <span class="method-click-advice">click to toggle source</span>
          </div>
          

          <div class="method-description">
            
            <p>This method is used to old values in the server specification in
configuration page. This method is called from add_div partial.</p>
            

            
            <div class="method-source-code" id="get_old_value_for_div-source">
<pre>
<span class="ruby-comment"># File app/helpers/admin_helper.rb, line 94</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier">get_old_value_for_div</span>(<span class="ruby-identifier">div_id</span>)
  <span class="ruby-identifier">port</span>, <span class="ruby-identifier">min_worker</span>, <span class="ruby-identifier">max_worker</span>, <span class="ruby-identifier">log_level</span>, <span class="ruby-identifier">ssl_support</span>, <span class="ruby-identifier">ssl_port</span>, <span class="ruby-identifier">certificate</span>, <span class="ruby-identifier">key</span>, <span class="ruby-identifier">access_log</span> = <span class="ruby-constant">ServerSpecification</span>.<span class="ruby-identifier">get_fields</span>
  <span class="ruby-keyword">if</span> <span class="ruby-identifier">params</span>[<span class="ruby-value">:div_id</span>] <span class="ruby-operator">==</span> <span class="ruby-string">'port_div'</span>    
    <span class="ruby-identifier">old_value</span> = <span class="ruby-identifier">port</span>
  <span class="ruby-keyword">elsif</span> <span class="ruby-identifier">params</span>[<span class="ruby-value">:div_id</span>] <span class="ruby-operator">==</span> <span class="ruby-string">'min_pro_div'</span>
    <span class="ruby-identifier">old_value</span> = <span class="ruby-identifier">min_worker</span>
  <span class="ruby-keyword">elsif</span> <span class="ruby-identifier">params</span>[<span class="ruby-value">:div_id</span>] <span class="ruby-operator">==</span> <span class="ruby-string">'max_pro_div'</span>
    <span class="ruby-identifier">old_value</span> = <span class="ruby-identifier">max_worker</span>
  <span class="ruby-keyword">elsif</span> <span class="ruby-identifier">params</span>[<span class="ruby-value">:div_id</span>] <span class="ruby-operator">==</span> <span class="ruby-string">'ssl_port_div'</span>
    <span class="ruby-identifier">old_value</span> = <span class="ruby-identifier">ssl_port</span>
  <span class="ruby-keyword">elsif</span> <span class="ruby-identifier">params</span>[<span class="ruby-value">:div_id</span>] <span class="ruby-operator">==</span> <span class="ruby-string">'certificate_div'</span>
    <span class="ruby-identifier">old_value</span> = <span class="ruby-identifier">certificate</span>
  <span class="ruby-keyword">elsif</span> <span class="ruby-identifier">params</span>[<span class="ruby-value">:div_id</span>] <span class="ruby-operator">==</span> <span class="ruby-string">'key_div'</span>
    <span class="ruby-identifier">old_value</span> = <span class="ruby-identifier">key</span>
  <span class="ruby-keyword">elsif</span> <span class="ruby-identifier">params</span>[<span class="ruby-value">:div_id</span>] <span class="ruby-operator">==</span> <span class="ruby-string">'log_div'</span>
    <span class="ruby-identifier">old_value</span> = <span class="ruby-identifier">log_level</span>
  <span class="ruby-keyword">elsif</span> <span class="ruby-identifier">params</span>[<span class="ruby-value">:div_id</span>] <span class="ruby-operator">==</span> <span class="ruby-string">'access_log_div'</span>
    <span class="ruby-identifier">old_value</span> = <span class="ruby-identifier">access_log</span>
  <span class="ruby-keyword">end</span>
  <span class="ruby-keyword">return</span> <span class="ruby-identifier">old_value</span>
<span class="ruby-keyword">end</span></pre>
            </div><!-- get_old_value_for_div-source -->
            
          </div>

          

          
        </div><!-- get_old_value_for_div-method -->

      
        <div id="ssl_block-method" class="method-detail ">
          <a name="method-i-ssl_block"></a>

          
          <div class="method-heading">
            <span class="method-name">ssl_block</span><span
              class="method-args">(info, ssl_port, certificate, key)</span>
            <span class="method-click-advice">click to toggle source</span>
          </div>
          

          <div class="method-description">
            
            <p>To help the configuration page to display the ssl information.</p>
            

            
            <div class="method-source-code" id="ssl_block-source">
<pre>
<span class="ruby-comment"># File app/helpers/admin_helper.rb, line 117</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier">ssl_block</span>(<span class="ruby-identifier">info</span>, <span class="ruby-identifier">ssl_port</span>, <span class="ruby-identifier">certificate</span>, <span class="ruby-identifier">key</span>)
  <span class="ruby-keyword">if</span> <span class="ruby-identifier">info</span>[<span class="ruby-string">'Server Specification'</span>][<span class="ruby-string">'SSL Specification'</span>]
    <span class="ruby-identifier">block</span> = <span class="ruby-string">&quot;&lt;table width = 95% &gt;
                            &lt;tr&gt;
            &lt;th colspan='2' width = 80%&gt;SSL Support&lt;/th&gt;
            &lt;th&gt;&quot;</span>
    <span class="ruby-keyword">if</span> <span class="ruby-identifier">info</span>[<span class="ruby-string">'Server Specification'</span>][<span class="ruby-string">'SSL Specification'</span>][<span class="ruby-string">'ssl_support'</span>] <span class="ruby-operator">==</span> <span class="ruby-string">'enabled'</span>
      <span class="ruby-identifier">block</span> = <span class="ruby-identifier">block</span> <span class="ruby-operator">+</span> <span class="ruby-node">&quot;#{link_to('Disable', :controller =&gt; 'server_specification', :action =&gt; 'disable_ssl_support', :id =&gt; 0)}&quot;</span>
      <span class="ruby-identifier">block</span> = <span class="ruby-identifier">block</span> <span class="ruby-operator">+</span> <span class="ruby-string">&quot;&lt;/th&gt;
                &lt;/tr&gt;&quot;</span>
      <span class="ruby-identifier">block</span> = <span class="ruby-identifier">block</span> <span class="ruby-operator">+</span> <span class="ruby-node">&quot;&lt;tr&gt;
                    &lt;td width = 30%&gt;SSL Port&amp;nbsp;&amp;nbsp;&amp;nbsp;
                      #{link_to_function('Help', :onclick =&gt; 'addHelp(&quot;ssl_port&quot;,event);')}
                    &lt;/td&gt;
                    &lt;td width = 50%&gt;&lt;div id = 'ssl_port_div'&gt;#{ssl_port}&lt;/td&gt;
                    &lt;td width = 20%&gt;#{link_to_remote 'Edit', :update =&gt; 'ssl_port_div', :url =&gt; { :controller =&gt; 'server_specification', :action =&gt; 'add_text_box', :div_id =&gt; 'ssl_port_div'}}&lt;/td&gt;
                               &lt;/tr&gt;
                               &lt;tr&gt;
                                       &lt;td&gt;SSL Certificate Path&amp;nbsp;&amp;nbsp;&amp;nbsp;
                                              #{link_to_function('Help', :onclick =&gt; 'addHelp(&quot;ssl_certificate&quot;,event);')}
                    &lt;/td&gt;
                                       &lt;td&gt;&lt;div id = 'certificate_div'&gt;#{certificate}&lt;/div&gt;&lt;/td&gt;
                    &lt;td&gt;#{link_to_remote 'Edit', :update =&gt; 'certificate_div', :url =&gt; {:controller =&gt; 'server_specification', :action =&gt; 'add_text_box', :div_id =&gt; 'certificate_div'}}&lt;/td&gt;
                                &lt;/tr&gt;
                                &lt;tr&gt;
                                            &lt;td&gt;Machine key path&amp;nbsp;&amp;nbsp;&amp;nbsp;
                                              #{link_to_function('Help', :onclick =&gt; 'addHelp(&quot;ssl_key&quot;,event);')}
                    &lt;/td&gt;
                                        &lt;td&gt;&lt;div id = 'key_div'&gt;#{key}&lt;/td&gt;
                    &lt;td&gt;#{link_to_remote 'Edit', :update =&gt; 'key_div', :url =&gt; { :controller =&gt; 'server_specification', :action =&gt; 'add_text_box', :div_id =&gt; 'key_div'}}&lt;/td&gt;
                                &lt;/tr&gt;
                &lt;/table&gt;&quot;</span>
    <span class="ruby-keyword">else</span>
      <span class="ruby-identifier">block</span> = <span class="ruby-identifier">block</span> <span class="ruby-operator">+</span> <span class="ruby-node">&quot;#{link_to_remote 'Enable', :update =&gt; 'ssl_div', :url =&gt; {:controller =&gt; 'server_specification', :action =&gt; 'ssl_support_form', :id =&gt; 1}}&quot;</span>
      <span class="ruby-identifier">block</span> = <span class="ruby-identifier">block</span> <span class="ruby-operator">+</span> <span class="ruby-string">&quot;&lt;/th&gt;
                &lt;/tr&gt;
            &lt;/table&gt;&quot;</span>
    <span class="ruby-keyword">end</span>
    <span class="ruby-identifier">block</span> = <span class="ruby-identifier">block</span> <span class="ruby-operator">+</span> <span class="ruby-node">&quot;&lt;div id = 'ssl_div'&gt;#{if flash[:ssl_errors]
    render :partial =&gt; 'server_specification/ssl_support_form'
    end}&lt;/div&gt;&lt;br/&gt;&lt;br/&gt;&quot;</span>
  <span class="ruby-keyword">end</span>
  <span class="ruby-keyword">return</span> <span class="ruby-identifier">block</span>
<span class="ruby-keyword">end</span></pre>
            </div><!-- ssl_block-source -->
            
          </div>

          

          
        </div><!-- ssl_block-method -->

      
      </div><!-- public-instance-method-details -->
    
    </div><!-- 5Buntitled-5D -->
  

  </div><!-- documentation -->

  <div id="validator-badges">
    <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
    <p><small>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish
      Rdoc Generator</a> 2</small>.</p>
  </div>

</body>
</html>

